function getURL(longURL) {
	var pos = longURL.indexOf('/', 7);
	if (pos == -1)
		return longURL;
	else
		return longURL.substring(0, pos);
}